db891f6adc270eb22fafcfe778973fb2d4eeabc4,VUE2/src/tufts/vue/PathwayControl.java,PathwayControl,setCurrentPathway,#LWPathway#,175

Before Change


        currentPathway = pathway;
        
        //setting the current node of the pathway to the first node
        currentPathway.setCurrent(currentPathway.getFirst());
        pathwayList.setSelectedItem(pathway);
        
        updateControlPanel();

After Change


        currentPathway = pathway;
        
        if ((currentPathway.getCurrent() == null) && (currentPathway.getFirst() != null) )
            currentPathway.setCurrent(currentPathway.getFirst());
        
        pathwayList.setSelectedItem(pathway);